﻿<Window x:Class="OCSDKWrapper.SampleApp.MOCSampleApp"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="OCSDKWrapper Sample Application" 
    Height="300" Width="400">
    <Grid>
        <Grid.Resources>
            <DataTemplate x:Key="eventTemplate">
                <Grid>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock x:Name="eventName" Width="175" Text="{Binding Path=EventName}" />
                        <TextBlock x:Name="eventOccurred" Width="150" Text="{Binding Path=EventOccurred}" />
                    </StackPanel>
                </Grid>
            </DataTemplate>
        </Grid.Resources>
        
        <TextBlock FontFamily="Arial" FontSize="14" FontWeight="Bold" Margin="5,5,0,0">
            OCSDKWrapper Sample Application
        </TextBlock>
        <TextBlock FontFamily="Arial" FontSize="10" FontWeight="Bold" Margin="5,26,0,0" 
            HorizontalAlignment="Left" VerticalAlignment="Top" Width="125" Height="20">
            Communicator Events
        </TextBlock>
        <ListBox x:Name="communicatorEvents" ItemTemplate="{DynamicResource eventTemplate}" Margin="5,43,8,37" />
        <TextBlock FontFamily="Arial" FontSize="10" FontWeight="Bold" Margin="0,0,0,10" 
            HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="100" Height="20" >
            Connection Status
        </TextBlock>
        <TextBlock FontFamily="Arial" FontSize="10" FontWeight="Bold" Margin="165,0,110,10" 
            VerticalAlignment="Bottom" Height="20" >
            My Status
        </TextBlock>
        <TextBlock x:Name="connectionStatus" FontFamily="Arial" FontSize="10" 
            HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="100" Height="20" Margin="0,0,0,-5">
            Unknown
        </TextBlock>
        <TextBlock x:Name="myStatus" FontFamily="Arial" FontSize="10" Margin="165,0,113,-5"
            VerticalAlignment="Bottom" Height="20">
            Unknown
        </TextBlock>
    </Grid>
</Window>
